import request from 'utils/request';
export const login = (
  data: Api.params<'/patrol-admin/login', 'post', 'body'>['login'],
): Promise<{
  token: string;
}> => {
  return request({
    url: '/patrol-admin/login',
    data,
  });
};
export const getUserInfo = (): Promise<
  Api.resBody['响应«用户管理»']['data']
> => {
  return request({
    url: '/patrol-admin/sys/user/info',
    method: 'get',
  });
};
